<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * WEIXIN
 * @author VIVIQIN
 *
 */
class Ddweixin extends CI_Controller {
	
	function __construct(){
		parent::__construct();
	}
	public function index(){
		print_r('ych');die;
	}
	
	public function articity(){
		//获取投资理财内容
		$this->load->model('article_model');
		$this->load->model('site_model');
		$media = $this->site_model->get_site_one(array('url'=>'media'));
		$data = array();
		$data['where']['nid'] = $media['id'];
		$data['page_size']  = 5;
		$data['page_start'] = 0;
		$data['select'] 	= 1;
		$vdata = $this->article_model->get_article_list($data);
		echo json_encode($vdata['article_list']);
		exit;
	}
	
	public function articityview($article_id){
		$this->load->model('site_model');
		$this->load->model('article_model');
		//$article_id = $_GET['id'];
		$article = $this->article_model->get_article_obj($article_id);
  		
  		$vdata['site'] = $this->site_model->get_site_obj($article['nid']);
  		
  		$vdata['article'] = $article;
  		
		$this->load->view('weixin/articity',$vdata);
	}
	
	public function introduction_view(){
		$this->load->view('weixin/introduction');
	}
	
	public function baozheng_view(){
		$this->load->view('weixin/baozheng');
	}
	
	public function development_view(){
		$this->load->view('weixin/development');
	}
	
	
}

